
/* 带刻度的滑动条 */
.slider-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: rebeccapurple;
    padding: 0; /* 确保没有内边距 */
    margin: 0; /* 确保没有外边距 */
  }
  
  .slider-track {
    position: relative;
    width: 300px;
    height: 30px;
    background: pink;
    box-sizing: border-box; /* 包括边框和内边距在内 */
    padding: 0;
    margin: 0;
  }
  
  .slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    background: #ddd;
    outline: none;
    border-radius: 10px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 1px solid #4CAF50; /* 添加边框并指定颜色 */
    box-sizing: border-box; /* 包括边框在内 */

  }
  
  .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px; /* 长方形的滑动块宽度 */
    height: 40px; /* 长方形的滑动块高度 */
    background: #4CAF50;
    border-radius: 4px; /* 使滑动块四角略微圆润 */
    cursor: pointer;
  }
  
  .slider-scale {
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  
  .top-scale {
    top: -5px;
  }
  
  .bottom-scale {
    bottom: -5px;
  }
  
  .tick {
    width: 1px;
    height: 8px;
    background-color: gray;
  }
